#include "data.h"

Data::Data( int _year, string _date, string _hour, double _lat, double _long, int _error, string _state,
		          double _depth, double _mag, int _type, char _cat, string _Io, double _area, string _local, string _comment )
:m_year(_year)
,m_date(_date)
,m_hour (_hour)
,m_lat (_lat)
,m_long (_long)
,m_error (_error)
,m_state (_state)
,m_depth (_depth)
,m_mag (_mag)
,m_type (_type)
,m_cat (_cat)
,m_Io (_Io)
,m_area (_area)
,m_local (_local)
,m_comment (_comment)
,m_mag2(0.)
,m_Mw1(0.)
,m_Mw2(0.)
,m_Mw3(0.)
,m_Mw(0.)
{

}

Data::Data( int _year, string _date, string _hour, double _lat, double _long, int _error, string _state, 
            double _depth, double _mag, int _type, char _cat, string _Io, double _area, string _local, string _comment, 
            double _Mw1, double _Mw2, double _Mw3, double _Mw )
:m_year(_year)
,m_date(_date)
,m_hour (_hour)
,m_lat (_lat)
,m_long (_long)
,m_error (_error)
,m_state (_state)
,m_depth (_depth)
,m_mag (_mag)
,m_type (_type)
,m_cat (_cat)
,m_Io (_Io)
,m_area (_area)
,m_local (_local)
,m_comment (_comment)
,m_mag2(0.)
,m_Mw1(_Mw1)
,m_Mw2(_Mw2)
,m_Mw3(_Mw3)
,m_Mw(_Mw)
{

}

Data::~Data()
{
}

int Data::getyear()
{
 return m_year;
}

std::string Data::getdate()
{
 return m_date;
}

string Data::gethour()
{
 return m_hour;
}

double Data::getlat()
{
 return m_lat;
}

double Data::getlong()
{
 return m_long;
}

int Data::geterror()
{
 return m_error;
}

std::string Data::getstate()
{
 return m_state;
}

double Data::getdepth()
{
 return m_depth;
}

double Data::getmag()
{
 return m_mag;
}

int Data::gettype()
{
 return m_type;
}

char Data::getcat()
{
 return m_cat;
}

std::string Data::getIo()
{
 return m_Io;
}

double Data::getarea()
{
 return m_area;
}

std::string Data::getlocal()
{
 return m_local;
}

std::string Data::getcomment()
{
 return m_comment;
}

double Data::getMw1()
{
 return m_Mw1;
}

double Data::getMw2()
{
 return m_Mw2;
}

double Data::getMw3()
{
 return m_Mw3;
}

double Data::getMw()
{
 return m_Mw;
}




